import os
from google.appengine.ext.webapp import template
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from base import BaseHandler

import constants

class HomeHandler(BaseHandler):
   def user_do(self,name,email):
      self.template_values[constants.Verb_Desc]=constants.verb2desc["home"]
      self.send_to_template("home.html",self.template_values)
      
   def non_user_do(self):
      self.template_values[constants.Verb_Desc]=constants.verb2desc["home"]
      self.send_to_template("home.html",self.template_values)
      
application = webapp.WSGIApplication([('/home', HomeHandler),('/', HomeHandler)],debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
    main()